package com.work.blog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.SimpleFormatter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-06-17
 * Time:10:40
 */
public class DateUtils {
    public static String dateFormat(Date date){//把Date类型转为一定格式的String类型
        //2025-6-17 10:52
        SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return format.format(date);
    }


}
